﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileWatcherConfig.aspx.cs"
    Inherits="WinnerCMS.WebUI.Admin.SecurityCenter.FileWatcherConfig" %>


<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>FileWatcher配置</title>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    <meta charset="utf-8" />
    <meta http-equiv="Expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Pragma" content="no-cache" />
</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath">
        <tr>
            <td><asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%" class="TabelGrid">
                <tr>
                    <td class="RowTitle">
                        启用FileWatcher：
                    </td>
                    <td>
                        <asp:CheckBox ID="cbkStartupFileWatch" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        最大扫描文件体积：
                    </td>
                    <td >
                        <WinnerCMS:NumericTextBox ID="NtxtMaxSize" runat="server" Width="84px"></WinnerCMS:NumericTextBox>&nbsp;
                        字节<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NtxtMaxSize"
                            ErrorMessage="必须输入数字"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        最小扫描文件体积：
                    </td>
                    <td>
                        <WinnerCMS:NumericTextBox ID="NtxtMinSize" runat="server" Width="82px"></WinnerCMS:NumericTextBox>&nbsp;
                        字节<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="NtxtMinSize"
                            ErrorMessage="必须输入数字"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        Code Scaner：</td>
                    <td>
                        <asp:RadioButtonList ID="RBL_CS" runat="server" RepeatDirection="Horizontal" 
                            RepeatLayout="Flow">
                            <asp:ListItem Selected="True" Value="0">仅仅作警告(推荐)</asp:ListItem>
                            <asp:ListItem Value="1">发现就删除</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        PE Scaner：</td>
                    <td>
                        <asp:RadioButtonList ID="RBL_PE" runat="server" RepeatDirection="Horizontal" 
                            RepeatLayout="Flow">
                            <asp:ListItem Value="0">仅仅作警告</asp:ListItem>
                            <asp:ListItem Selected="True" Value="1">发现就删除(推荐)</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        监控目录：
                    </td>
                    <td>
                        <asp:TextBox ID="txtWatchDir" runat="server"></asp:TextBox>
                        留空为监控根目录<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtWatchDir"
                            ErrorMessage="必须输入监控目录"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        排除以下格式文件：
                    </td>
                    <td>
                        <asp:TextBox ID="txtIgnorePostfix" runat="server" Height="83px" TextMode="MultiLine"
                            Width="196px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <br />
            <div align="center">
                <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="保存" Cssclass="btn btn-default" /></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
